package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 书架表(Bookshelef)实体类
 *
 * @author 杨丽辉
 * @since 2021-03-10 11:05:27
 */
@ApiModel("书架表")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Bookshelef implements Serializable {
    private static final long serialVersionUID = 181954230529076985L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
    @ApiModelProperty(value="$column.comment", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String bookshelfId;

    /**
    * 用户id和作者id
    * isnull 0
    */        @ApiModelProperty(value="用户id和作者id",position=2)
    private String userId;
        
    public String getBookshelfId() {
        return bookshelfId;
    }

    public void setBookshelfId(String bookshelfId) {
        this.bookshelfId = bookshelfId;
    }
        
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"bookshelfId\":" + bookshelfId +
                                  " ,\"userId\":" + userId +
                  '}';
    }


}
